<template>
  <div class="app-container">
    <p>分公司销售排行（销售金额累计TOP10）</p>
    <div class="chart-wrapper-box">
      <el-table
        :header-cell-style="{'text-align':'center'}"
        :cell-style="{'text-align':'center'}"
        :data="fgsxsData"
        border
        style="width: 100%"
        v-loading="fgsxsloading"
      >
        <el-table-column type="index" label="序号" width="50">
        </el-table-column>
        <el-table-column prop="officeName" label="分公司名"></el-table-column>
        <el-table-column prop="saleNumber" label="订单金额"/>
        <el-table-column prop="salesAmount" label="销售金额"/>
        <el-table-column prop="salesCoMent" label="销售提成"/>
        <el-table-column prop="procureFlow" label="采购成本"/>
        <el-table-column prop="goodsCost" label="商品成本"/>
        <el-table-column prop="logisticsCost" label="物流成本"/>
        <el-table-column prop="estimatedProfit" label="预估利润"/>
        <el-table-column prop="profitRate" label="利润率"/>
        <el-table-column prop="companyPerk" label="公司补贴"/>
        <el-table-column prop="bounsMent" label="奖金"/>
        <el-table-column prop="agentNumber" label="代理数量"/>
        <el-table-column prop="userNumber" label="学员数量"/>
        <el-table-column prop="shopNumber" label="店铺数量"/>
      </el-table>
    </div>
  </div>
</template>

<script>
import {HeadOfficeBranchOfficeSaleRankingMonthData} from "@/api/index";

export default {
  name: "branchData",
  data() {
    return {
      fgsxsData: [], // 分公司销售排行（销售金额累计TOP20）
      fgsxsloading: false
    }
  },
  methods: {
    // 分公司销售排行（销售金额累计TOP10）
    getHeadOfficeBranchOfficeSaleRankingMonthData() {
      this.fgsxsloading = true;
      HeadOfficeBranchOfficeSaleRankingMonthData().then(res => {
        this.fgsxsData = res.data;
        this.fgsxsloading = false;
      })
    },
  }
}
</script>

<style scoped>

</style>
